See Also

CalendarPattern Class  | CalendarPattern Members  | Overload List

Language

Visual Basic

C#

Show All

mappedTimeUnit
The time unit represented by each boolean value.
wholeTimeUnit
Time unit represented by the pattern array.
timePattern
Time pattern array.
See Also Languages dotnetCHARTING Send comments on this topic.

CalendarPattern Constructor(TimeInterval,TimeInterval,Boolean[])

Initializes a new instance of the CalendarPattern class with time units and a pattern.

[Visual Basic]
Public Function New( _    ByVal mappedTimeUnit As TimeInterval, _    ByVal wholeTimeUnit As TimeInterval, _    ByVal timePattern() As Boolean _ )
[C#]
public CalendarPattern(    TimeInterval mappedTimeUnit,    TimeInterval wholeTimeUnit,    bool[] timePattern );

Parameters

mappedTimeUnit
The time unit represented by each boolean value.
wholeTimeUnit
Time unit represented by the pattern array.
timePattern
Time pattern array.

Example

This instantiates a new CallendarPattern of a week marking the saturday and sunday. It uses the PatternFromString method to simplify adding a pattern by using a string.

[C#] 

CalendarPattern newPattern = new CalendarPattern(TimeInterval.Day,TimeInterval.Week,CalendarPattern.PatternFromString("1000001"));

See Also

CalendarPattern Class  | CalendarPattern Members  | Overload List

 

 


2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.